import request from '@/utils/request'
export function roomInitRoomConfig(params){
	return request({
    url: '/room/room_init_room_config.html',
    method: 'get',
		params
  })
}
export function roomInitRoomChat(params){
	return request({
    url: '/room/room_init_room_chat.html',
    method: 'get',
		params
  })
}
export function roomInitRoomVideo(params){
	return request({
    url: '/room/room_init_room_video.html',
    method: 'get',
		params
  })
}
export function sendMessageApi(params){
	return request({
    url: '/user/send_message.html',
    method: 'post',
		data: params
  })
}
export function getRoomTabs(params){
	return request({
    url: '/room/get_room_tabs.html',
    method: 'get',
		params
  })
}
export function getRoomVideoList(params){
	return request({
    url: '/room/get_room_recordings.html',
    method: 'get',
		params
  })
}
export function getRelatedRoomList(params){
	return request({
    url: '/room/get_related_rooms.html',
    method: 'get',
		params
  })
}
export function sendGift(data) {
  return request({
    url: '/user/send_gift.html',
    method: 'post',
    data
  })
}

//获取vote
export function getRoomVote(data) {
  return request({
    url: '/room/get_room_vote.html',
    method: 'get',
		params: data
  })
}

//进行投票
export function handleVote(data) {
  return request({
    url: '/user/user_vote.html',
    method: 'post',
    data
  })
}

//获取礼物列表
export function getGiftList(data) {
  return request({
    url: '/room/get_gift_list.html',
    method: 'get',
		params: data
  })
}